﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common.Model;
using JOthello.Controls;

namespace JOthello.Forms
{
    public partial class SpielFertigForm : Form
    {
        private SpielFertigControl control;
        #region getter / setter
        public Label LblGewinnerName
        {
            get
            {
                return lblGewinnerName;
            }
            set
            {
                lblGewinnerName = value;
            }
        }
        public Label LblVerliererName
        {
            get
            {
                return lblVerliererName;
            }
            set
            {
                lblVerliererName = value;
            }
        }
        public Label LblGewinnerPunkte
        {
            get
            {
                return lblGewinnerPunkte;
            }
            set
            {
                lblGewinnerPunkte = value;
            }
        }
        public Label LblVerliererPunkte
        {
            get
            {
                return lblVerliererPunkte;
            }
            set
            {
                lblVerliererPunkte = value;
            }
        }
        public PictureBox PbxGewinner
        {
            get
            {
                return pbxGewinner;
            }
            set
            {
                pbxGewinner = value;
            }
        }
        public PictureBox PbxVerlierer
        {
            get
            {
                return pbxVerlierer;
            }
            set
            {
                pbxVerlierer = value;
            }
        }
        public ProgressBar PgbPunke
        {
            get
            {
                return pgbPunke;
            }
            set
            {
                pgbPunke = value;
            }
        }
        public Button BtnOk
        {
            get
            {
                return btnOk;
            }
            set
            {
                btnOk = value;
            }
        }
        public Button BtnReplay
        {
            get
            {
                return btnReplay;
            }
            set
            {
                btnReplay = value;
            }
        }
        public Panel PnlVerlierer
        {
            get
            {
                return pnlVerlierer;
            }
            set
            {
                pnlVerlierer = value;
            }
        }
        public Panel PnlGewinner
        {
            get
            {
                return pnlGewinner;
            }
            set
            {
                pnlGewinner = value;
            }
        }
        public Label LblGewinner
        {
            get
            {
                return lblGewinner;
            }
            set
            {
                lblGewinner = value;
            }
        }
        public Label LblVerlierer
        {
            get
            {
                return lblVerlierer;
            }
            set
            {
                lblVerlierer = value;
            }
        }
        public Label LblUnentschieden
        {
            get
            {
                return lblUnentschieden;
            }
            set
            {
                lblUnentschieden = value;
            }
        }
        #endregion
        public SpielFertigForm(List<CSpieler> sps, bool unentschieden, bool enableReplay)
        {
            InitializeComponent();

            this.Icon = Properties.Resources.icon;

            this.control = new SpielFertigControl(this, sps, unentschieden, enableReplay);

            this.AcceptButton = btnOk;
            this.CancelButton = btnOk;
        }
    }
}
